//
//  titleBUtton.swift
//  WEIBO
//
//  Created by 李龙 on 15/6/29.
//  Copyright © 2015年 itheima. All rights reserved.
//

import UIKit

class titleBUtton: UIButton {

    override func layoutSubviews() {
        super.layoutSubviews()
        var tFrame = titleLabel!.frame
        tFrame.origin.x = 0
        titleLabel!.frame = tFrame
        
        var iFrame = imageView!.frame
        iFrame.origin.x = tFrame.width
        imageView!.frame = iFrame
    }
    /*
    // Only override drawRect: if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func drawRect(rect: CGRect) {
        // Drawing code
    }
    */

}
